#include "linsearch_u8f.h"
#include "rtwtypes.h"

uint8_T linsearch_u8f(real32_T u, const real32_T bp[], uint32_T startIndex)
{
  uint32_T bpIdx;
  for (bpIdx = startIndex; u < bp[bpIdx]; bpIdx--) {
  }

  while (u >= bp[bpIdx + 1U]) {
    bpIdx++;
  }

  return (uint8_T)bpIdx;
}
